<template>
	<view style="background-color: #F8F8F8;">
		<view class="nav-back">
			<top-heigth :backTitle="backTitle"></top-heigth>
		</view>
		
		<view class="content-box">
			<view v-if="myList.length == 0" class="kong-box">
				<uv-empty mode="" text="暂时没有消息通知~" icon="/static/image/kong-yao.png"></uv-empty>
			</view>
			<view class="notice2-list" v-for="item in myList">
				<view class="notice-list-l">
					<view class=""><b>{{item.messageTitle}}</b></view>
					<view class="font-hui">{{(item.createTime).slice(0,10)}}</view>
				</view>
				<view class="font">
					{{item.messageContent}}
				</view>
			</view>
			
			
			<view class="notice2-list">
				<image class="notice2-img" src="/static/image/system-img1.png"></image>
				<view>
					<view class="notice-list-l">
						<view class=""><b>2222</b></view>
						<view class="font-hui">555555</view>
					</view>
					<view class="font">
						的你只需处女座，每次女子整理库存v牛仔长裤
					</view>
				</view>
			</view>
			<view class="notice2-list">
				<image class="notice2-img" src="/static/image/system-img2.png"></image>
				<view>
					<view class="notice-list-l">
						<view class=""><b>2222</b></view>
						<view class="font-hui">555555</view>
					</view>
					<view class="font">
						的你只需处女座，每次女子整理库存v牛仔长裤
					</view>
				</view>
			</view>
			<view class="notice2-list">
				<image class="notice2-img" src="/static/image/system-img3.png"></image>
				<view>
					<view class="notice-list-l">
						<view class=""><b>2222</b></view>
						<view class="font-hui">555555</view>
					</view>
					<view class="font">
						的你只需处女座，每次女子整理库存v牛仔长裤
					</view>
				</view>
			</view>
			
		</view>
		
	</view>
</template>

<script>
	import TopHeigth from '@/components/TopHeigth.vue'
	
	export default {
		data() {
			return {
				backTitle:"消息通知",
				myList:'',
				userInfo: uni.getStorageSync('userInfo'),
			}
		},
		components: { TopHeigth },
		onLoad() {
			this.getList()
		},
		methods: {
			getList() {
				uni.$u.http.post('/api/shop/v1_0/tAppMessageSendRCA/queryTAppMessageSend',{
						staffId:this.userInfo.id,
						sendTypes:[0,1],
				}).then((res) => {
					this.myList = res.aaData
					
				}) 
			},
		}
	}
</script>

<style lang="scss" scoped>
	@mixin flex($direction: row) {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: $direction;
	}
	.uv-nav-slot {
		@include flex;
		align-items: center;
		justify-content: space-between;
		border-width: 0.5px;
		border-radius: 100px;
		border-color: #dadbde;
		padding: 3px 7px;
		opacity: 0.8;
	}
	
	.notice2-list{
		background-color: #fff;
		border-radius: 24rpx;
		padding: 32rpx 24rpx;
		margin-top: 24rpx;
		@include flex;
		align-items: center;
		justify-content: flex-start;
		.notice-list-l{
			display: flex;
			align-items: center;
			justify-content: space-between;
			font-size: 30rpx;
			color: #333;
		}
		.font{
			color: #666;
			font-size: 26rpx;
			margin-top: 16rpx;
		}
	}
	
	.notice2-img{
		width: 90rpx;
		height: 90rpx;
		margin-right: 30rpx;
	}
</style>
